package com.heima.apis.wemedia;
/*
    
 需求描述：
 @Author: wang
 @Date: 2022/10/21 17:52
 
 */

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmSensitiveDto;
import com.heima.model.wemedia.dtos.WmSensitivePageReqDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-wemedia")
public interface ISensitiveClient {

    @PostMapping("/api/v1/sensitive/save")
    public ResponseResult save(@RequestBody WmSensitiveDto dto);

    @PostMapping("/api/v1/sensitive/list")
    public ResponseResult listSensitive(@RequestBody WmSensitivePageReqDto dto);

    @PostMapping("/api/v1/sensitive/update")
    ResponseResult updateSensitive(@RequestBody WmSensitiveDto dto);

    @DeleteMapping("/api/v1/sensitive/del/{id}")
    ResponseResult deleteSensitive(@PathVariable Integer id);
}
